package com.fjec.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjec.user.entity.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 005.权限表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

//    @Select("select Permission from sys_permission where id = " +
//            "(select PermId from ref_role_perm where RoleId = (select id from sys_role where RoleCode = #{roleCode}))")
    List<String> getPermsByRoleCode(@Param("roleCode") String roleCode);
}
